package cn.roadtrip.mtravelbusinessmodule.mvc.travelline;

import cn.roadtrip.mtravelbusinessmodule.bs.travelline.PrePriceSettingImpl;
import cn.roadtrip.utilmodule.util.DataBean;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/travelline/prepriceSettings")
public class PrepriceSettingsController {

    @Autowired
    private PrePriceSettingImpl prePriceSettingImpl;

    /**
     * 获取车辆类型以及价格
     *
     * @param model
     * @return
     */
    @RequestMapping("/getPreCarPriceList")
    public DataBean getPreCarPriceList(@RequestBody PrePriceSettingImpl.Model_getPreCarPriceList model) {
        return prePriceSettingImpl.getPreCarPriceList(model);
    }


    /**
     * 创建车辆类型以及费用
     *
     * @param models
     * @return
     */
    @RequestMapping("/createPreCarPrice")
    public DataBean createPreCarPric(@RequestBody java.util.List<PrePriceSettingImpl.Model_createPreCarPric> models) {
        return prePriceSettingImpl.createPreCarPrice(models);
    }


    /**
     * 获取房间类型费用
     *
     * @param model
     * @return
     */
    @RequestMapping("/getPreHotelRoomTypePriceList")
    public DataBean getPreHotelRoomTypePriceList(@RequestBody PrePriceSettingImpl.Model_getPreHotelRoomTypePriceList model) {
        return prePriceSettingImpl.getPreHotelRoomTypePriceList(model);
    }


    /**
     * 预设住房费用
     *
     * @param models
     * @return
     */
    @RequestMapping("/createHotelRoomTypePrice")
    public DataBean createHotelRoomTypePrice(@RequestBody java.util.List<PrePriceSettingImpl.Model_createHotelRoomTypePrice> models) {
        return prePriceSettingImpl.createHotelRoomTypePrice(models);
    }
}
